import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UserController } from './user/user.controller';
import { UserService } from './user/user.service';
import { NewsController } from './news/news.controller';
import { NewsService } from './news/news.service';
import { TicketController } from './ticket/ticket.controller';
import { TicketService } from './ticket/ticket.service';
import { GroupBuyController } from './group-buy/group-buy.controller';
import { GroupBuyService } from './group-buy/group-buy.service';
import { ImageController } from './image/image.controller';
import { ImageService } from './image/image.service';
import { CartController } from './cart/cart.controller';
import { CartService } from './cart/cart.service';
import { DictionaryController } from './dictionary/dictionary.controller';
import { DictionaryService } from './dictionary/dictionary.service';
import { NewsModule } from './news/news.module';
import { TicketModule } from './ticket/ticket.module';
import { GroupBuyModule } from './group-buy/group-buy.module';
import { ImageModule } from './image/image.module';
import { CartModule } from './cart/cart.module';
import { DictionaryModule } from './dictionary/dictionary.module';
// 添加这一行导入
import { ActivityModule } from './activity/activity.module';

@Module({
  imports: [
    NewsModule,
    TicketModule,
    GroupBuyModule,
    ImageModule,
    CartModule,
    DictionaryModule,
    // 添加 ActivityModule 到导入列表
    ActivityModule,
  ],
  controllers: [
    AppController,
    UserController,
    NewsController,
    TicketController,
    GroupBuyController,
    ImageController,
    CartController,
    DictionaryController,
    // 注意: ActivityController 应该已经在 ActivityModule 中注册了，
    // 这里不需要重复注册，可以删除下一行
  ],
  providers: [
    AppService,
    UserService,
    NewsService,
    TicketService,
    GroupBuyService,
    ImageService,
    CartService,
    DictionaryService,
    // 注意: ActivityService 应该已经在 ActivityModule 中注册了，
    // 这里不需要重复注册，可以删除下一行
  ],
})
export class AppModule {}